package ua.pp.bizon.yandex.api;

public interface IUserDataManager {

	/**
	 * save data
	 */
	void save();

	/**
	 * clear remembered data
	 */
	void clear();

	/**
	 * store new data
	 * 
	 * @deprecated user can be absent
	 * @param user
	 * @param token
	 */
	void relogin(String user, String token);

	/**
	 * store new data
	 * 
	 * @param token
	 */
	void relogin(String token);

	/**
	 * getUserData
	 * 
	 * @return get (ask=true)
	 */
	IUserData get();

	IUserData get(boolean ask);

	void logout();
}
